/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2010.

	This file is part of Maxsi Distribution.

	Maxsi Distribution is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	Maxsi Distribution is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
	or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
	License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Maxsi Distribution. If not, see <http://www.gnu.org/licenses/>.

	Maxsi Distribution
	A powerful digital distribution library designed for games and software.

	MaxsiDistributionInterfaceSystem.cpp
	Exports functions that allows various libraries to access all the 
	interfaces declared inside the Maxsi Distribution library.

******************************************************************************/

#include "MaxsiLibrary.h"
#include "MaxsiDistribution.h"

MaxsiInterface*  MaxsiDistributionCreateInterface(char* Interface)
{
	return CreateInterface(Interface);
}

MD_LINKC MAXSI_CALL void MaxsiDistributionDeleteInterface(MaxsiInterface* Interface)
{
	return DeleteInterface(Interface);
}

MD_LINKC MAXSI_CALL char* MaxsiDistributionMESTR2CHAR(const MESTR* Input)
{
	return MESTR2CHAR(Input);
}

MD_LINKC MAXSI_CALL wchar_t* MaxsiDistributionMESTR2WCHAR(const MESTR* Input)
{
	return MESTR2WCHAR(Input);
}

MD_LINKC MAXSI_CALL MESTR* MaxsiDistributionCHAR2MESTR(const char* Input)
{
	return CHAR2MESTR(Input);
}

MD_LINKC MAXSI_CALL MESTR* MaxsiDistributionWCHAR2MESTR(const wchar_t* Input)
{
	return WCHAR2MESTR(Input);
}

MD_LINKC MAXSI_CALL void MaxsiDistributionDeleteString(const void* Input)
{
	delete[] (BYTE*)Input;
}

MD_LINKC MAXSI_CALL MESTR* MaxsiDistributionGetErrorName(MaxsiError Error)
{
	return MaxsiErrorName(Error);
}

